//
//  WJMianModel.m
//  WJBSApp
//
//  Created by 王景伟 on 2018/11/22.
//  Copyright © 2018 王景伟. All rights reserved.
//

#import "WJMainModel.h"

@implementation User
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"header" : [NSString class]};
}
@end


@implementation Image
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"medium" : [NSString class],
             @"small" : [NSString class],
             @"big" : [NSString class],
             @"download_url" : [NSString class],
             @"thumbnail_small" : [NSString class]
             };
}
@end



@implementation Gif
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"gif_thumbnail" : [NSString class],
             @"images" : [NSString class],
             @"download_url" : [NSString class]};
}
@end



@implementation Video
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"thumbnail" : [NSString class],
             @"download" : [NSString class],
             @"video" : [NSString class]};
}
@end



@implementation Audio
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"thumbnail" : [NSString class],
             @"download_url" : [NSString class],
             @"audio" : [NSString class]};
}
@end



@implementation TopComment
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"user":@"u",
             @"idStr":@"id"};
}
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"thumbnail" : [NSString class],
             @"download_url" : [NSString class],
             @"audio" : [NSString class]};
}
@end



@implementation Tag
+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"idStr":@"id"};
}
@end





@implementation WJMainModel

+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"idStr":@"id",
             @"user":@"u",
             @"topComments":@"top_comments"};
}
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"topComments" : [TopComment class],
             @"tags" : [Tag class]};
}
@end
